package cn.tx.service.impl;

import cn.tx.mapper.MemberDao;
import cn.tx.pojo.Member;
import cn.tx.service.MemberService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Snake Eyes
 * @PROJECT_NAME: health_parent
 * @DESCRIPTION:
 * @USER: 11647
 * @DATE: 2021/9/11 11:46
 * @Email: 1164763541@qq.com
 */
@Service(interfaceClass = MemberService.class)
@Transactional
public class MemberServiceImpl implements  MemberService{
    @Autowired
    private MemberDao memberDao;
    /**
     * @author :11647
     * @date ：Created in 2021/9/11  11:48
     * @description：(描述) 按月查找会员数量
     * @modified By：11647
     * @version:
     */
    @Override
    public List<Integer> findMemberCountByMonth(List<String> months) {
        for (String month : months) {
            List values = memberDao.findMemberCountByMonth(month);
        }
        return null;
    }


}
